import Request from './request.js'


const API = {
	addDemand: '/app/bus/job/addDemand',
    addLabelApi: '/app/bus/partTimeJob/addCategory',
    serviceList: '/app/bus/job/my/list',
    deleteService: '/app/bus/job',
    cancelService: '/app/bus/job/cancel/release',
    againRelease: '/app/bus/job/again/release',
    serviceDetail: '/app/bus/job/detail',
    serviceInfo: '/app/bus/job/my/info',
    addPartTimeJob: '/app/bus/partTimeJob', // 发布兼职
	partTimeJList:'/app/bus/partTimeJob/categoryList' ,
}

// 需求发布
export const addDemand = params => Request.post(API.addDemand, {}, {data: params})
// 新增兼职标签
export const addLabelApi = params => Request.post(API.addLabelApi, {}, {data: params})
// 发布列表
export const serviceList = (params) => Request.get(API.serviceList, {data: params})
// 删除服务
export const deleteService = (params) => Request.delete(API.deleteService, params)
// 取消发布
export const cancelService = params => Request.get(API.cancelService, {data: params})
// 再次发布
export const againRelease = params => Request.get(API.againRelease, {data: params})
// 详情接口
export const serviceInfo = (params) => Request.get(API.serviceInfo, {data: params})
// 发布兼职
export const addPartTimeJob = params => Request.post(API.addPartTimeJob, {}, {data: params})
// 兼职标签默认列表
export const partTimeJList = (params) => Request.get(API.partTimeJList, {data: params})